.class Les/kx$a$d;
.super Ljava/lang/Object;
.source "TaskGridViewWrapper.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Les/kx$a;->a(Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;I)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Les/gx;

.field final synthetic b:I

.field final synthetic c:Les/kx$a;


# direct methods
.method constructor <init>(Les/kx$a;Les/gx;I)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/kx$a$d;->c:Les/kx$a;

    iput-object p2, p0, Les/kx$a$d;->a:Les/gx;

    iput p3, p0, Les/kx$a$d;->b:I

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 5

    .line 1
    iget-object p1, p0, Les/kx$a$d;->c:Les/kx$a;

    iget-object p1, p1, Les/kx$a;->e:Les/kx;

    invoke-virtual {p1}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->E()Z

    move-result p1

    if-nez p1, :cond_5

    .line 2
    iget-object p1, p0, Les/kx$a$d;->a:Les/gx;

    invoke-virtual {p1}, Les/gx;->a()Les/s80;

    move-result-object p1

    .line 3
    invoke-virtual {p1}, Les/s80;->m()I

    move-result v0

    .line 4
    instance-of v1, p1, Les/d70;

    const/4 v2, 0x1

    if-eqz v1, :cond_3

    if-ne v0, v2, :cond_0

    .line 5
    iget-object v1, p0, Les/kx$a$d;->a:Les/gx;

    invoke-virtual {v1}, Les/gx;->a()Les/s80;

    move-result-object v1

    invoke-virtual {v1}, Les/s80;->d()V

    goto :goto_0

    :cond_0
    const/4 v1, 0x3

    if-ne v0, v1, :cond_1

    .line 6
    iget-object v1, p0, Les/kx$a$d;->a:Les/gx;

    invoke-virtual {v1}, Les/gx;->a()Les/s80;

    move-result-object v1

    invoke-virtual {v1}, Les/s80;->v()V

    goto :goto_0

    :cond_1
    const/4 v1, 0x5

    if-ne v0, v1, :cond_2

    .line 7
    iget-object v1, p0, Les/kx$a$d;->c:Les/kx$a;

    iget-object v1, v1, Les/kx$a;->e:Les/kx;

    invoke-static {v1}, Les/kx;->q(Les/kx;)Les/kx$c;

    move-result-object v1

    iget-object v3, p0, Les/kx$a$d;->c:Les/kx$a;

    iget-object v3, v3, Les/kx$a;->e:Les/kx;

    iget v4, p0, Les/kx$a$d;->b:I

    invoke-virtual {v3, v4}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->e(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/estrongs/fs/g;

    invoke-virtual {v1, v3}, Les/kx$c;->a(Lcom/estrongs/fs/g;)V

    .line 8
    iget-object v1, p0, Les/kx$a$d;->a:Les/gx;

    invoke-virtual {v1}, Les/gx;->a()Les/s80;

    move-result-object v1

    iget-object v3, p0, Les/kx$a$d;->c:Les/kx$a;

    iget-object v3, v3, Les/kx$a;->e:Les/kx;

    invoke-static {v3}, Les/kx;->q(Les/kx;)Les/kx$c;

    move-result-object v3

    invoke-virtual {v1, v3}, Les/s80;->a(Les/y80;)V

    .line 9
    iget-object v1, p0, Les/kx$a$d;->a:Les/gx;

    invoke-virtual {v1}, Les/gx;->a()Les/s80;

    move-result-object v3

    invoke-virtual {v1, v3}, Les/gx;->a(Les/s80;)V

    .line 10
    iget-object v1, p0, Les/kx$a$d;->a:Les/gx;

    invoke-virtual {v1}, Les/gx;->a()Les/s80;

    move-result-object v1

    invoke-virtual {v1}, Les/s80;->d()V

    goto :goto_0

    :cond_2
    const/4 v1, 0x2

    if-ne v0, v1, :cond_3

    .line 11
    iget-object v1, p0, Les/kx$a$d;->a:Les/gx;

    invoke-virtual {v1}, Les/gx;->a()Les/s80;

    move-result-object v1

    invoke-virtual {v1}, Les/s80;->t()V

    :cond_3
    :goto_0
    const/4 v1, 0x4

    if-ne v0, v1, :cond_5

    .line 12
    :try_start_0
    invoke-virtual {p1}, Les/s80;->w()Lorg/json/JSONObject;

    move-result-object v0

    const-string v1, "target"

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 13
    invoke-static {v0}, Lcom/estrongs/android/util/h0;->y1(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_4

    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/estrongs/fs/f;->c(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_4

    .line 14
    iget-object v0, p0, Les/kx$a$d;->c:Les/kx$a;

    iget-object v0, v0, Les/kx$a;->e:Les/kx;

    invoke-static {v0}, Les/kx;->c(Les/kx;)Landroid/content/Context;

    move-result-object v0

    iget-object v1, p0, Les/kx$a$d;->c:Les/kx$a;

    iget-object v1, v1, Les/kx$a;->e:Les/kx;

    invoke-static {v1}, Les/kx;->d(Les/kx;)Landroid/content/Context;

    move-result-object v1

    const v3, 0x7f110751

    new-array v2, v2, [Ljava/lang/Object;

    .line 15
    invoke-virtual {p1}, Les/s80;->w()Lorg/json/JSONObject;

    move-result-object p1

    const-string v4, "title"

    invoke-virtual {p1, v4}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    const/4 v4, 0x0

    aput-object p1, v2, v4

    .line 16
    invoke-virtual {v1, v3, v2}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    invoke-static {v0, p1, v4}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_1

    .line 17
    :cond_4
    iget-object p1, p0, Les/kx$a$d;->c:Les/kx$a;

    iget-object p1, p1, Les/kx$a;->e:Les/kx;

    invoke-virtual {p1}, Lcom/estrongs/android/view/h0;->h()Landroid/app/Activity;

    move-result-object p1

    invoke-static {p1, v0, v0}, Lcom/estrongs/android/pop/view/utils/b;->d(Landroid/app/Activity;Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catch Lcom/estrongs/fs/FileSystemException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    const-string p1, "TaskGridViewWarpper"

    const-string v0, "Ignore error when open file in download manager"

    .line 18
    invoke-static {p1, v0}, Lcom/estrongs/android/util/n;->e(Ljava/lang/String;Ljava/lang/String;)V

    :cond_5
    :goto_1
    return-void
.end method
